﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain
{
    ///菜单
    public class Menu : BaseEntity
    { 
        /// <summary>
        /// 菜单ID
        /// </summary>
        [Key]
        public int MenuId { get; set; }

        /// <summary>
        /// 菜单名称
        /// </summary>
        public string? MenuName { get; set; }

        /// <summary>
        /// 点击菜单需要跳转的地址
        /// </summary>
        public string? Url { get; set; }

        /// <summary>
        /// 父级菜单的Id,顶级菜单是0
        /// </summary>
        public int PID { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
    }
}
